package pri.zey.custom.tools;/**
 * Created by Administrator on 2016/3/16.
 */

import android.util.Log;

/**
 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>类描述
 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>属性描述
 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>方法描述
 */
public class TLog {

    private final String TAG = getClass().getName();
    private static boolean DEBUG = true;
    private static boolean LOGBOOL = true;
    public static final int LOG_I = 1, LOG_E = 2, LOG_D = 3, LOG_V = 4;

    public static void Log(String msg){
        if(DEBUG)
            return ;
        Log.i("Log", msg);
    }

    public static void Log(String msg, int type){
        if(LOGBOOL)
            return ;
        switch (type) {
            case LOG_I:
                Log.i("Log", msg);
                break;
            case LOG_E:
                Log.e("Log", msg);
                break;
            case LOG_D:
                Log.d("Log", msg);
                break;
            case LOG_V:
                Log.v("Log", msg);
                break;
            default:
                Log.e("Log", "showLog type error!");
                break;
        }
    }
}
